//
// TcpServerConnection.cpp
//
// $Id: //poco/1.4/Net/src/TcpServerConnection.cpp#1 $
//
// Library: Net
// Package: TcpServer
// Module:  TcpServerConnection
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:	BSL-1.0
//


#include "Poco/Net/TcpServerConnection.h"
#include "Poco/Exception.h"
#include "Poco/ErrorHandler.h"


using Poco::Exception;
using Poco::ErrorHandler;


namespace Poco {
namespace Net {


TcpServerConnection::TcpServerConnection(int fd):
	m_fd(fd)
{
}


TcpServerConnection::~TcpServerConnection()
{
}


void TcpServerConnection::start()
{
	try
	{
		run();
	}
	catch (Exception& exc)
	{
		ErrorHandler::handle(exc);
	}
	catch (std::exception& exc)
	{
		ErrorHandler::handle(exc);
	}
	catch (...)
	{
		ErrorHandler::handle();
	}
}


} } // namespace Poco::Net
